﻿<div class="container-fluid">
    <style>
        .height700 {
            height: 700px;
            min-height: 700px;
            overflow: paged-y-controls;
        }
    </style>
    <div class="row">
        <div class="row">
            <h2 class="col-md-5">网站主配置</h2>
            <button type="button" class="btn btn-success btn-lg col-md-1 pull-right waves-effect" ng-click="save()">保存</button>
        </div>
        <div class="input-group">
            <span class="input-group-addon">网站主域名：</span>
            <div class="fg-line">
                <input type="text" class="form-control" ng-model="Settings.Domain" />
            </div>
        </div>
        <div class="input-group">
            <span class="input-group-addon">网站标语：</span>
            <div class="fg-line">
                <input type="text" class="form-control" ng-model="Settings.Brand" />
            </div>
        </div>
        <div class="input-group">
            <span class="input-group-addon">网站口号：</span>
            <div class="fg-line">
                <input type="text" class="form-control" ng-model="Settings.Slogan" />
            </div>
        </div>
        <div class="input-group">
            <span class="input-group-addon">保留关键字：</span>
            <div class="fg-line">
                <input type="text" class="form-control" ng-model="Settings.ReservedName" />
            </div>
        </div>
        <div class="input-group">
            <span class="input-group-addon">资源管理器根目录：</span>
            <div class="fg-line">
                <input type="text" class="form-control" ng-model="Settings.PathRoot" placeholder="请输入合法的路径，如果是网站根目录则输入反斜线“/”" />
            </div>
            <span class="input-group-btn">
                <button type="button" class="btn btn-info" ng-click="pathtest()">检查路径</button>
            </span>
        </div>
    </div>
    <div class="row">
        <h2>网站SEO相关</h2>
        <div class="input-group">
            <span class="input-group-addon">标题：</span>
            <div class="fg-line">
                <input type="text" class="form-control" ng-model="Settings.Title" />
            </div>
        </div>
        <div class="input-group">
            <span class="input-group-addon">关键词：</span>
            <div class="fg-line">
                <input type="text" class="form-control" ng-model="Settings.Keyword" />
            </div>
        </div>
        <div class="input-group">
            <span class="input-group-addon">描述：</span>
            <div class="fg-line">
                <input type="text" class="form-control" ng-model="Settings.Description" />
            </div>
        </div>
    </div>
    <div class="row">
        <h2>网站邮箱配置</h2>
        <div class="input-group">
            <span class="input-group-addon">发件邮箱：</span>
            <div class="fg-line">
                <input type="text" class="form-control" ng-model="Settings.EmailFrom" />
            </div>
        </div>
        <div class="input-group">
            <span class="input-group-addon">发件邮箱密码：</span>
            <div class="fg-line">
                <input type="password" class="form-control" ng-model="Settings.EmailPwd" />
            </div>
        </div>
        <div class="input-group">
            <span class="input-group-addon">发件邮箱SMTP服务器：</span>
            <div class="fg-line">
                <input type="text" class="form-control" ng-model="Settings.SMTP" />
            </div>
        </div>
        <div class="input-group">
            <span class="input-group-addon">发件邮箱SMTP端口号：</span>
            <div class="fg-line">
                <input type="text" class="form-control" ng-model="Settings.SmtpPort" />
            </div>
        </div>
        <div class="input-group">
            <span class="input-group-addon">接收网站通知邮箱：</span>
            <div class="fg-line">
                <input type="text" class="form-control" ng-model="Settings.ReceiveEmail" />
            </div>
            <span class="input-group-btn">
                <button type="button" class="btn btn-info" ng-click="mailtest()">测试邮箱配置</button>
            </span>
        </div>
    </div>
    <div class="row">
        <h2>网站媒体设置</h2>
        <div class="col-md-2 col-sm-3 col-xs-4">
            <h3>
                网站logo：
            </h3>
            <img class="img img-responsive img-thumbnail img-rounded" ng-src="{{Settings.logo}}" style="max-height: 300px;" ng-click="setImage('logo')" />
            <span class="input-group-btn">
                <button type="button" class="btn btn-danger waves-effect" ng-click="setImage('logo')">修改</button>
            </span>
        </div>
        <div class="col-md-5">
            <h3>文章版权声明：</h3>
            <div style="height: 200px;" class="ueditor" ng-model="Settings.Disclaimer" type="text/plain"></div>
        </div>
        <div class="col-md-5">
            <h3>网站页脚版权：</h3>
            <div style="height: 200px;" class="ueditor" ng-model="Settings.Copyright" type="text/plain"></div>
        </div>
    </div>
    <div class="row">
        <h2>捐赠二维码</h2>
        <div class="col-md-3 col-xs-6">
            <h3>支付宝：</h3>
            <img class="img img-responsive img-thumbnail img-rounded" ng-src="{{Settings.Donate}}" style="max-height: 300px;" ng-click="setImage('Donate')" />
            <span class="input-group-btn">
                <button type="button" class="btn btn-danger waves-effect" ng-click="setImage('Donate')">修改</button>
            </span>
        </div>
        <div class="col-md-3 col-xs-6">
            <h3>微信：</h3>
            <img class="img img-responsive img-thumbnail img-rounded" ng-src="{{Settings.DonateWechat}}" style="max-height: 300px;" ng-click="setImage('DonateWechat')" />
            <span class="input-group-btn">
                <button type="button" class="btn btn-danger waves-effect" ng-click="setImage('DonateWechat')">修改</button>
            </span>
        </div>
        <div class="col-md-3 col-xs-6">
            <h3>QQ：</h3>
            <img class="img img-responsive img-thumbnail img-rounded" ng-src="{{Settings.DonateQQ}}" style="max-height: 300px;" ng-click="setImage('DonateQQ')" />
            <span class="input-group-btn">
                <button type="button" class="btn btn-danger waves-effect" ng-click="setImage('DonateQQ')">修改</button>
            </span>
        </div>
        <div class="col-md-3 col-xs-6">
            <h3>京东金融收钱码：</h3>
            <img class="img img-responsive img-thumbnail img-rounded" ng-src="{{Settings.DonateJingdong}}" style="max-height: 300px;" ng-click="setImage('DonateJingdong')" />
            <span class="input-group-btn">
                <button type="button" class="btn btn-danger waves-effect" ng-click="setImage('DonateJingdong')">修改</button>
            </span>
        </div>
    </div>
</div>